<?php
/*
  $Id: banner.php $
  TomatoCart Open Source Shopping Cart Solutions
  http://www.tomatocart.com

  Copyright (c) 2009 Wuxi Elootec Technology Co., Ltd

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License v2 (1991)
  as published by the Free Software Foundation.
*/


class osC_Content_banner extends osC_Modules {
    var $_title,
        $_code = 'banner',
        $_author_name = 'TomatoCart',
        $_author_www = 'http://www.tomatocart.com',
        $_group = 'content';
 
    function osC_Content_banner() {
        global $osC_Language;

        $this->_title = 'Banner';
        $this->_title = $osC_Language->get('module_banner');
    }
 
    function initialize() {
        global $osC_Services, $osC_Banner;

        if ($osC_Services->isStarted('banner') && $osC_Banner->exists('468x60')) {
        $this->_content .= '<p align="center">'. $osC_Banner->display(). '</p>';
        }
    }
}
?>